package com.raylu.bean

import com.raylu.util.MyBeanUtil

/**
 *
 * Description:
 *
 * Create by lucienoz on 2021/12/5.
 * Copyright © 2021 lucienoz. All rights reserved.
 */
case class OrderWide(
										//Order Info
											var id :String = null,    //编号
											var total_amount :Double = 0D ,    //总金额
											var order_status :String = null,    //订单状态
											var user_id :String = null,    //用户id
											var payment_way :String = null,    //付款方式
											var parent_order_id :String = null,    //父订单编号
											var province_id :String = null,    //地区
											var activity_reduce_amount :Double = 0D ,    //促销金额
											var coupon_reduce_amount :Double = 0D ,    //优惠券
											var original_total_amount :Double = 0D ,    //原价金额
											var feight_fee :Double = 0D ,    //运费
											var feight_fee_reduce :Double = 0D ,    //运费减免
											var refundable_time :String = null,     //可退款日期（签收后30天）
										//Order Detail

										var order_id:String = null, //订单编号
										var sku_id:String = null, //sku_id
										var sku_name:String = null, //sku名称（冗余)
										var img_url:String = null, //图片名称（冗余)
										var order_price:Double = 0D , //购买价格(下单时sku价格）
										var sku_num:Int = 0 , //购买个数
										var create_time:String = null, //创建时间
										var source_type:String = null, //来源类型
										var source_id:String = null, //来源编号
										var split_total_amount:Double = 0D , //""
										var split_activity_amount:Double = 0D , //""
										var split_coupon_amount:Double = 0D,  //""

										//该访问用户的性别 年龄
										var user_gender : String = null,
										var user_age : Int = 0,

										// 地区信息   （如果日志是area code) 暂时不好做 先做用户的
										var province_name : String = null,
										var province_iso_code : String = null,
										var province_3166_2 : String = null,
										var province_area_code : String = null
										){
	def this(orderInfo:OrderInfo,orderDetail:OrderDetail){
		this
		MyBeanUtil.copyProperties(orderInfo,this)
		MyBeanUtil.copyProperties(orderDetail,this)
		this.id = orderDetail.id
	}

}
